import request from '@/utils/request'
// -------- 咨询方式 --------

let BASE_ADDRESS = 'base/aboutGroup'

//  id查询
export function getaboutGroupGetInfoApi(params) {
    //console.log(params)
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: "get",
        params
    })
}

// 分页查询
export function getaboutGroupListApi(params) {
    //console.log(params)
    console.log(`${BASE_ADDRESS}/list`)
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//  添加
export function getaboutGroupaddApi(data) {
    // console.log(data)
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "POST",
        data
    })
}

//  修改关于分类
export function getaboutGroupEditApi(data) {
    console.log(data)
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "PUT",
        data
    })
}
//  相关服务
export function getaboutrelatedServicesApi(params) {
    //console.log(params)
    return request({
        url: `${BASE_ADDRESS}/relatedServices`,
        method: "get",
        params
    })
}
// 删除关于分类
export function getaboutGroupRemoveApi(data) {
    //console.log(`${BASE_ADDRESS}/remove?id=` + data)
    return request({
        url: `${BASE_ADDRESS}/remove?id=` + data,
        method: "delete",
    })
}
// 获取官网设置参数
export function getlistOfficialApi(params) {
    //console.log(`${BASE_ADDRESS}/remove?id=` + data)
    return request({
        url: 'base/config/listOfficial',
        method: "get",
        params
    })
}
//  修改官网设置参数
export function getconfigEditApi(data) {
    //console.log(data)
    return request({
        url: 'base/config/edit',
        method: "PUT",
        data
    })
}
